package com.vows.core.base.model;

/**
 * @项目: webbit-web
 * @所属包: com.vows.core.base.model
 * @描述: 分页model 
 * @authur:vows
 * @创建日期:2017年6月4日-下午5:51:54
 * 2017  PD.Sp Center . GDT Co.Ltd  -版权所有
 * 
 */
public class PageInfo {
    public PageInfo() {
        pageNum = 1;
        pageSize = 10;
    }

    public PageInfo(Integer pageSize) {

        this.pageNum = 1;
        this.pageSize = pageSize;
    }

    // 当前页数
    private int pageNum;

    // 每页记录数
    private int pageSize;

    // 总记录数
    private int count;

    // 总页数
    private int pageCount;

    // 结果集
    java.util.List pojoList = new java.util.ArrayList();

    public int getPageNum() {

        return pageNum;
    }

    public void setPageNum(int pageNum) {

        this.pageNum = pageNum;
    }

    public int getPageSize() {

        return pageSize;
    }

    public void setPageSize(int pageSize) {

        this.pageSize = pageSize;
    }

    public int getCount() {

        return count;
    }

    public void setCount(int count) {

        this.count = count;
    }

    public int getPageCount() {

        pageCount = count / pageSize;
        if (count % pageSize > 0) {
            ++pageCount;
        }
        return pageCount;
    }

    public java.util.List getPojoList() {

        return pojoList;
    }

    public void setPojoList(java.util.List pojoList) {

        this.pojoList = pojoList;
    }
}
